/*
package com.chengzhi.route;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.zuul.RoutesRefreshedEvent;
import org.springframework.cloud.netflix.zuul.filters.RouteLocator;
import org.springframework.context.ApplicationEventPublisher;

*/
/**
 * @author ruanchengzhi
 * @description: 实时刷新
 * @date 2019/9/29 10:34
 *//*

public class RefreshRoute {
    @Autowired
    private ApplicationEventPublisher publisher;

    @Autowired
    RouteLocator routeLocator;

    public void refresh() {
        RoutesRefreshedEvent routesRefreshedEvent = new RoutesRefreshedEvent(routeLocator);
        publisher.publishEvent(routesRefreshedEvent);
    }

}
*/
